<?php
	class Default_Model_Slideshow extends  Zend_Db_Table_Abstract{
		protected  $_name = 'slideshow';
		protected $_primary = 'id';
		public function getSlider(){
			$select = $this->select()
						->where("status = 1 and type = 0 ")
						->order("weight ASC");
			$result = $this->fetchAll($select);
			return $result->toArray();
		}
	}
?>
